<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('城志班组考勤表打印')" />
<style type="text/css">
body {
			overflow-x: auto;
		}
	table {
		font-size: 12px;
		font-weight:500;
		font-family: 线体;
		margin-left: 50px;
    	border-collapse: collapse;
	}
    table, tr{
	    text-align: center;
	    width: 900px;
	    height: 40px;
	}
	.items td{ height:30px; border: 1px solid black;}
	
	@media print{
	   body {
	       height: auto !important;
	   }
	}
</style>
</head>
<body class="white-bg">
    <table style="margin-top: 0px;">
	<!-- 打印网页时通过hidden-print隐藏元素 -->
    <div class="text-right hidden-print">
        <button class="btn btn-primary" onclick="printPage()"><i class="fa fa-print"></i> 打印</button>
    </div>
	<tr style="height: 60px;">
		<td style="text-align: left"><img style="height: 30px" src="/ruoyi.png"></td>
		<td style="font-size: 30px;font-family: 线体;font-weight:500;">
		<span th:text="${years}"></span>年<span th:text="${month}"></span>月城志班组考勤表
		</td>
	</tr>
</table>
<table class="items">
	<tr>
		<td style="width: 3%"><b>&nbsp;&nbsp;</b></td>
		<td style="width: 3%"><b>&nbsp;&nbsp;</b></td>
		<td style="width: 3%"><b>&nbsp;&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
		<td style="width: 2%"><b>&nbsp;</b></td>
	</tr>
	<tr>
		<td style="width: 3%"><b>姓&nbsp;&nbsp;名</b></td>
		<td style="width: 3%"><b>小&nbsp;&nbsp;计</b></td>
		<td style="width: 3%"><b>合&nbsp;&nbsp;计</b></td>
		<td style="width: 2%" th:each="day,status:${daylis}"><b th:text="${day}">&nbsp;</b></td>
	</tr>
	<tr th:each="rep,status:${replis}">
		<td style="width: 3%"><b th:text="${rep.peopleName}">&nbsp;</b></td>
		<td style="width: 3%"><b th:text="${rep.peopleCount}">&nbsp;</b></td>
		<td style="width: 3%"><b th:text="${rep.peopleTotal}">&nbsp;</b></td>
		<td style="width: 2%" th:each="peopleJc,status:${rep.peopleJclis}"><b th:text="${peopleJc}">&nbsp;</b></td>
	</tr>
	<tr>
		<td style="width: 3%"><b>人数小计</b></td>
		<td style="width: 3%"><b th:text="${hj}">&nbsp;</b></td>
		<td style="width: 3%"><b th:text="${hj}">&nbsp;</b></td>
		<td style="width: 2%" th:each="xj,status:${dayxjs}"><b th:text="${xj}">&nbsp;</b></td>
	</tr>
</table>
<th:block th:include="include :: footer" />
    <script type="text/javascript">
        function printPage() {
            window.print();
        }
    </script>
</body>
</html>